﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

namespace Libra.Receipt.Application;

/// <summary>
/// 过磅记录表输出参数
/// </summary>
public class WeightLogOutput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public long? Id { get; set; }
    
    /// <summary>
    /// 项目编号
    /// </summary>
    public long? ProjectId { get; set; }
    
    /// <summary>
    /// 项目名称
    /// </summary>
    public string? ProjectName { get; set; }
    
    /// <summary>
    /// 设备编号
    /// </summary>
    public long? DeviceId { get; set; }
    
    /// <summary>
    /// 车牌号
    /// </summary>
    public string? LicensePlate { get; set; }
    
    /// <summary>
    /// 原始车牌号
    /// </summary>
    public string? OriginalLicensePlate { get; set; }
    
    /// <summary>
    /// 称重重量
    /// </summary>
    public decimal? Weight { get; set; }
    
    /// <summary>
    /// 称重时间
    /// </summary>
    public DateTime? WeighingTime { get; set; }
    
    /// <summary>
    /// 称重开始时间
    /// </summary>
    public DateTime? WeighingStartTime { get; set; }
    
    /// <summary>
    /// 称重结束时间
    /// </summary>
    public DateTime? WeighingEndTime { get; set; }
    
    /// <summary>
    /// 称重时长
    /// </summary>
    public Int16? WeightDuration { get; set; }
    
    /// <summary>
    /// 称重曲线保存路径-相对路径
    /// </summary>
    public string? WeightCurveOssUrl { get; set; }
    
    /// <summary>
    /// 称重照片保存路径-相对路径
    /// </summary>
    public string? WeightImageUrl { get; set; }
    
    /// <summary>
    /// 称重视频保存路径-相对路径
    /// </summary>
    public string? WeightVideoUrl { get; set; }
    
    /// <summary>
    /// 同步时间-时间戳
    /// </summary>
    public DateTime? SyncTime { get; set; }
    
    /// <summary>
    /// 收料单id
    /// </summary>
    public string? MaterialDetailId { get; set; }
    
    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateTime { get; set; }
    
    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }
    
    /// <summary>
    /// 创建者Id
    /// </summary>
    public long? CreateUserId { get; set; }
    
    /// <summary>
    /// 创建者姓名
    /// </summary>
    public string? CreateUserName { get; set; }
    
    /// <summary>
    /// 修改者Id
    /// </summary>
    public long? UpdateUserId { get; set; }
    
    /// <summary>
    /// 修改者姓名
    /// </summary>
    public string? UpdateUserName { get; set; }
    
    /// <summary>
    /// 软删除
    /// </summary>
    public bool? IsDelete { get; set; }
    
    /// <summary>
    /// 是否本地磅
    /// </summary>
    public int? LocalWeighbridge { get; set; }
    
    /// <summary>
    /// 
    /// </summary>
    public int? WeightGuardMode { get; set; }
    
    /// <summary>
    /// 过磅业务状态 1=待匹配 2=已匹配 3=已作废
    /// </summary>
    public int? WeightStatus { get; set; }
    
    /// <summary>
    /// 收发类型 1=收料 2=发料
    /// </summary>
    public int? WeightDispatchType { get; set; }
    
    /// <summary>
    /// 匹配类型 1=手动匹配 2=自动匹配
    /// </summary>
    public int? MatchType { get; set; }
    
}

/// <summary>
/// 过磅记录表数据导入模板实体
/// </summary>
public class ExportWeightLogOutput : ImportWeightLogInput
{
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public virtual string Error { get; set; }
}
